<template>
	<view class="">

		<view class="flex justify-between" v-for="(item, index) in monthExpandTransList" :key="index" id="myCollapse">
			<view class="">
				{{item.transDate}}
			</view>
			<view class="">
				￥{{item.transAmount}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			// 声明你需要的属性
			message: Array
		},
		data() {
			return {
				monthExpandTransList: [],
				agentParams: {
					"agentNo": "",
					"transMonth": ""
				}

			}
		},
		mounted() {
			console.log("message" + this.message)
			// this.agentParams.transMonth = this.message;
			// this.transStatByDate(1);
		},

		methods: {
			transStatByDate(num) {
				const _that = this;
				console.log("data=" + JSON.stringify(this.agentParams))
				_that.$zx.order_api.transStatByDate(this.agentParams).then((data) => {

					console.log("data=" + JSON.stringify(data))

					if (num == 1) {
						_that.monthExpandTransList = data;
						_that.$refs.myCollapse.init()
					}

				});
			},
		},
	}
</script>

<style lang="scss" scoped>
	.notice-container {
		background-color: white;
		padding-bottom: 10rpx;
	}

	.title {
		font-weight: bold;
		margin-top: 20rpx;
		background: white;
		padding: 20rpx 0 0 20rpx;
	}

	.notice {
		margin: 20rpx 20rpx;
		border-radius: 10rpx;
		border: 1rpx solid #e5e5e5;
	}
</style>